-- ParticleList
-- 粒子表

ParticleList = class()

function ParticleList:init()
    self.emitter = Particle(0, 0)
    self.emitter2 = Particle(0, 0)   
end
function ParticleList:draw(a)
    self.emitter:draw(a)
    self.emitter2:draw(a)
end

function ParticleList:tick()
    self.emitter:update()
    self.emitter2:update()
end

function ParticleList:addParticleAtPos(x,y)
    self.emitter.x = x
    self.emitter.y = y - 20
    self.emitter:emit()
    self.emitter2.x = x
    self.emitter2.y = y + 20
    self.emitter2:emit()
end
